package org.daochong.fastdev;

import java.util.List;

public class OperationId {

	public static String IGNORE = "ignore";

	private String id;
	private List<String> flags;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public List<String> getFlags() {
		return flags;
	}

	public String getFirstFlag() {
		return flags.get(0);
	}

	public String getLastFlag() {
		return flags.get(flags.size() - 1);
	}

	public void setFlags(List<String> flags) {
		this.flags = flags;
	}

	public boolean isFlag(String flag) {
		return this.flags == null ? false : this.flags.contains(flag);
	}

	public boolean isIgnore() {
		return isFlag(IGNORE);
	}
}
